package pl.krzosekm.vehicleregister.backup;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;

import org.jdesktop.application.Application;
import org.jdesktop.layout.GroupLayout;
import org.jdesktop.layout.LayoutStyle;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class RepairFrame extends JFrame {

	private static final long serialVersionUID = -760339709384898112L;
	private JPanel jPanel1;
	private JButton jButton1;
	private JComboBox jComboBox1;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JScrollPane jScrollPane2;
	private JScrollPane jScrollPane1;
	private JTextArea jTextArea2;
	private JLabel jLabel6;
	private JTextArea jTextArea1;
	private JTextField jTextField3;
	private JLabel jLabel3;
	private JTextField jTextField2;
	private JLabel jLabel2;
	private JTextField jTextField1;
	private JLabel jLabel1;
	private JPanel jPanel2;
	private JButton jButton2;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				RepairFrame inst = new RepairFrame("NEW");
//				inst.setResizable(false);
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public RepairFrame(String mode) {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2, BorderLayout.CENTER);
				GroupLayout jPanel2Layout = new GroupLayout((JComponent)jPanel2);
				jPanel2.setLayout(jPanel2Layout);
				{
					jLabel1 = new JLabel();
					jLabel1.setName("jLabel1");
				}
				{
					jTextField1 = new JTextField();
					jTextField1.setName("jTextField1");
				}
				{
					jLabel2 = new JLabel();
					jLabel2.setName("jLabel2");
				}
				{
					jTextField2 = new JTextField();
					jTextField2.setName("jTextField2");
				}
				{
					jLabel3 = new JLabel();
					jLabel3.setName("jLabel3");
				}
				{
					jTextField3 = new JTextField();
					jTextField3.setName("jTextField3");
				}
				{
					jLabel4 = new JLabel();
					jLabel4.setName("jLabel4");
				}
				{
					ComboBoxModel jComboBox1Model = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
					jComboBox1 = new JComboBox();
					jComboBox1.setModel(jComboBox1Model);
				}
				{
					jLabel5 = new JLabel();
					jLabel5.setName("jLabel5");
				}
				{
					jScrollPane1 = new JScrollPane();
					{
						jTextArea1 = new JTextArea();
						jScrollPane1.setViewportView(jTextArea1);
						jTextArea1.setName("jTextArea1");
					}
				}
				{
					jLabel6 = new JLabel();
					jLabel6.setName("jLabel6");
				}
				{
					jScrollPane2 = new JScrollPane();
					{
						jTextArea2 = new JTextArea();
						jScrollPane2.setViewportView(jTextArea2);
						jTextArea2.setName("jTextArea2");
					}
				}
				jPanel2Layout.setVerticalGroup(jPanel2Layout.createSequentialGroup()
					.addContainerGap(12, 12)
					.add(jPanel2Layout.createParallelGroup(GroupLayout.BASELINE)
					    .add(GroupLayout.BASELINE, jTextField2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jLabel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jTextField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jLabel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.add(18)
					.add(jPanel2Layout.createParallelGroup(GroupLayout.BASELINE)
					    .add(GroupLayout.BASELINE, jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jLabel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jTextField3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jLabel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.add(33)
					.add(jPanel2Layout.createParallelGroup(GroupLayout.BASELINE)
					    .add(GroupLayout.BASELINE, jLabel6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.BASELINE, jLabel5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.RELATED)
					.add(jPanel2Layout.createParallelGroup()
					    .add(GroupLayout.LEADING, jScrollPane2, GroupLayout.PREFERRED_SIZE, 236, GroupLayout.PREFERRED_SIZE)
					    .add(GroupLayout.LEADING, jScrollPane1, GroupLayout.PREFERRED_SIZE, 236, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(12, 12));
				jPanel2Layout.setHorizontalGroup(jPanel2Layout.createSequentialGroup()
					.addContainerGap(12, 12)
					.add(jPanel2Layout.createParallelGroup()
					    .add(jPanel2Layout.createSequentialGroup()
					        .add(jPanel2Layout.createParallelGroup()
					            .add(GroupLayout.LEADING, jLabel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jLabel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jLabel5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					        .add(25)
					        .add(jPanel2Layout.createParallelGroup()
					            .add(GroupLayout.LEADING, jTextField1, GroupLayout.PREFERRED_SIZE, 244, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jTextField3, GroupLayout.PREFERRED_SIZE, 244, GroupLayout.PREFERRED_SIZE)))
					    .add(GroupLayout.LEADING, jScrollPane1, GroupLayout.PREFERRED_SIZE, 310, GroupLayout.PREFERRED_SIZE))
					.add(91)
					.add(jPanel2Layout.createParallelGroup()
					    .add(jPanel2Layout.createSequentialGroup()
					        .add(jPanel2Layout.createParallelGroup()
					            .add(GroupLayout.LEADING, jLabel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jLabel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jLabel6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					        .addPreferredGap(LayoutStyle.UNRELATED)
					        .add(jPanel2Layout.createParallelGroup()
					            .add(GroupLayout.LEADING, jTextField2, GroupLayout.PREFERRED_SIZE, 245, GroupLayout.PREFERRED_SIZE)
					            .add(GroupLayout.LEADING, jComboBox1, GroupLayout.PREFERRED_SIZE, 245, GroupLayout.PREFERRED_SIZE)))
					    .add(GroupLayout.LEADING, jScrollPane2, GroupLayout.PREFERRED_SIZE, 304, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(20, 20));
			}
			{
				jPanel1 = new JPanel();
				GridLayout jPanel1Layout = new GridLayout(1, 2);
				jPanel1Layout.setColumns(1);
				jPanel1Layout.setHgap(5);
				jPanel1Layout.setVgap(5);
				jPanel1.setLayout(jPanel1Layout);
				getContentPane().add(jPanel1, BorderLayout.SOUTH);
				jPanel1.setPreferredSize(new java.awt.Dimension(192, 26));
				{
					jButton1 = new JButton();
					jPanel1.add(jButton1);
					jButton1.setName("jButton1");
					jButton1.setPreferredSize(new java.awt.Dimension(91, 26));
				}
				{
					jButton2 = new JButton();
					jPanel1.add(jButton2);
					jButton2.setName("jButton2");
					jButton2.setPreferredSize(new java.awt.Dimension(90, 26));
				}
			}
			pack();
			this.setSize(745, 439);
			this.setResizable(false);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
